package com.ruicar.afs.cloud.basic.common.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruicar.afs.cloud.basic.common.entity.BasicDebitInfo;
import com.ruicar.afs.cloud.basic.common.entity.BasicReceiptRecord;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author: Lee
 * @date 2020-05-30 04:34:34 
 * @description 
 */
public interface BasicDebitInfoService extends IService<BasicDebitInfo> {

    /**
     * 根据合同号获取该合同当前欠款
     * @author ZC.GUO
     * @param contractNo 合同号
     * @return 
     */
    public BigDecimal getCurrentArrears(String contractNo, Date batchDate);
    /**
     * 根据合同号重新计算剩余本金和剩余租金总额
     * @author ZC.GUO
     * @param receiptRecord 收据
     * @return
     */
    public void reCalculateAfterReceipt(BasicReceiptRecord receiptRecord);

}
